<!DOCTYPE html>
<!-- saved from url=(0033)http://www.toutoupiao.com/AddVote -->
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="#" rel="shortcut icon" type="image/x-icon">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>	创建投票</title>
    <link href="{{asset('/css/style.min.css')}}" rel="stylesheet">

    <link href="{{asset('/css/froalaeditor.min.css')}}" rel="stylesheet">

    <link href="{{asset('/css/DateTimePicker.css')}}" rel="stylesheet">

    <link href="{{asset('/css/fine-uploader5.3.0.css')}}" rel="stylesheet">

    <link href="{{asset('/css/notifIt.css')}}" rel="stylesheet">
    <style>
        img{
            max-width:100%;
            max-height: 100%;
        }
    </style>


</head>
<body class="right-sb">


<div class="container">

    <!-- Start Header -->
    <header class="header-wrap clearfix">
        <div class="slicknav_menu">
            <a href="#" aria-haspopup="true" tabindex="0" class="slicknav_btn slicknav_collapsed" style="outline: none;">
                <span class="slicknav_menutxt">MENU</span>
                <span class="slicknav_icon"><span class="slicknav_icon-bar"></span>
                <span class="slicknav_icon-bar"></span><span class="slicknav_icon-bar"></span></span></a>


        </div>
        <div class="logo" role="banner">
            <a href="/" title="投票网" rel="home">
                <div class="logo-text">
                    <h1 class="logo-name" style="color:coral">必赢投票网</h1>
                </div>
            </a>
        </div>
        <nav class="main-nav clearfix">
            <div class="menu-navigation-container">
                <ul id="menu-navigation" class="menu">

                    <li><a class="username" href="#" title="管理">{{Auth::user()->name}}</a>
                        <ul class="sub-menu">
                            <li><a href="{{url('createTextVote')}}">文字投票</a></li>
                            <li><a href="{{url('createImgVote')}}">图片投票</a></li>
                            <li><a href="{{url('prev')}}">我的菜单</a></li>

                        </ul>
                    </li>

                    <li>
                        <form id="logoutForm" action="#" method="post">
                            <input name="__RequestVerificationToken" type="hidden" value="">
                            <a href="{{url('auth/logout')}}">注销</a>
                        </form>
                    </li>

                </ul>
            </div>
        </nav>
    </header>
    <!-- End Header -->

    <div class="content-section clearfix">
        <div id="main-content" class="content">
            <form action="{{url('createImgVote')}}" method="post" enctype="multipart/form-data">
                {!! csrf_field() !!}
                <article class="loop-container content-margin clearfix">
                    <header class="page-title-wrap">
                        <h1 class="page-title">创建投票</h1>
                    </header>



                    <div class="entry-content clearfix">

                        <p>
                            <label for="VoteName">投票标题</label><br>
                            <input id="VoteName" name="title" type="text" value="">
                        </p>

                        <textarea name="desc" id="textarea" cols="30" rows="2"></textarea>



                        <ul id="options_list" class="item-list">

                            <li class="options_list_var">
                                <div class="clearfix" class="hhh">
                                    <label>选项1</label><br>
                                    <input id="title1" name="titleName1" type="text" value=""><br>
                                    <div id="preview1" style="width:200px;height:200px;"></div>
                                    <input type="file" id="file1" name="pic1" style="display: none;"/>
                                    <input type="button" value="图片" onclick="img1()">
                                </div>
                            </li>

                        </ul>
                        <input type="button" class="options_list_add" id="add_item" value="增加选项" onclick="addTitle()">
                        <input type="button" class="options_list_add" id="del_item" value="删除选项" onclick="delTitle()">
                    </div>
                </article>
                <section class="loop-container related-posts content-background content-margin">
                    <header class="page-title-wrap">
                        <h1 class="page-title">功能设置</h1>
                    </header>
                    <ul class="related-wrap">
                        <li>
                            <div class="function_tag">
                                单选多选：
                                <input type="radio" name="type" value="1">单选</input>
                                <input type="radio" name="type" value="2">多选</input>
                                <input type="hidden" name="is_pic" value="1">
                                <span class="field-validation-valid"></span>
                            </div>
                        </li>
                    </ul>
                </section>

                <div class="content-background clearfix">
                    <h3 class="center-container">
                        <input type="submit" id="addsubmit" class="submit" value="发布投票">
                    </h3>
                </div>
            </form>
        </div>

        <aside id="main-sidebar" class="sidebar">

            <div class="sb-widget">
                <div class="widget-content">
                    <form action="#" class="searchform" id="searchform" method="get">
                        <div>
                            <input type="text" value="" name="keywords" id="keywords">
                            <input type="submit" id="searchsubmit" value="搜索">
                        </div>
                    </form>
                </div>
            </div>
        </aside>
    </div>
    <footer id="footer" class="footer clearfix">

        <div class="copyright-wrap">
            <p class="copyright"><a target="_blank" href="#">渝公网安备50010302000149号.</a>
                渝ICP备12000198号. <a href="hom/Leg">网站法规</a> <a href="#">站点地图</a>
                <a href="#">联系我们</a></p>
        </div>
    </footer>
</div>
</body>
<script src="{{asset('/js/jquery.js')}}"></script>
<script src="{{asset('/js/img.js')}}"></script>
</html>

